package com.imooc.class17;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.imooc")
public class MyConfiguration {

    @Bean(value = "bean",initMethod = "otherInit",destroyMethod = "otherDestroy")
    public TestBean bean(){
        return new TestBean();
    }
}
